luci-mod-status: channel_analysis: fix 802.11be local interface channel width
authorAleksander Jan Bajkowski <[email protected]>
Fri, 28 Feb 2025 20:46:54 +0000 (21:46 +0100)
committerHannu Nyman <[email protected]>
Sat, 1 Mar 2025 11:02:31 +0000 (13:02 +0200)
The channel width for WiFi 802.11be displays incorrectly on the
graph and this commit fixes it.

Signed-off-by: Aleksander Jan Bajkowski <[email protected]>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js

index 914c39219d6a9ecece6ef724f671f6c0fa617b6f..32eb797dba17919d40d6d5cb34a75ba39f839331 100644 (file)
@@ -228,7 +228,7 @@ return view.extend({
 
                                if (chan_analysis.offset_tbl[local_wifi.channel] != null && local_wifi.center_chan1) {
                                        var center_channels = [local_wifi.center_chan1],
-                                           chan_width_text = local_wifi.htmode.replace(/(V)*H[TE]/,''), /* Handle HT VHT HE */
+                                           chan_width_text = local_wifi.htmode.replace(/[EV]*H[TE]/,''), /* Handle HT VHT HE EHT */
                                            chan_width = parseInt(chan_width_text)/10;
 
                                        if (local_wifi.center_chan2) {